package com.dingding.facade.mall.service;

import java.util.List;

import com.dingding.facade.mall.dto.CommodityInfoRes;
import com.dingding.facade.mall.dto.UserCommodityOrderDTO;
import com.dingding.facade.mall.dto.UserIntegraDetailRecordRes;
import com.dingding.facade.mall.dto.UserMallIndexRes;

public interface IUserMallFacade {
	
	
	/**
	 * @Description: 根据用户id获取商城首页信息
	 * @param userId 用户id
	 * @author fengshuonan
	 * @return UserMallIndexRes
	 */
	public UserMallIndexRes getMallIndexInfo(String userId);
	
	
	/**
	 * @Description: 用户购买商品
	 * @param userId 用户id
	 * @param itemId 商品主键id
	 * @author fengshuonan
	 * @return int 状态码（操作成功或失败）
	 */
	public int buyItem(String userId,String itemId);
	
	/**
	 * 
	 * @Description: 根据用户id获取用户商城订单列表
	 * @param userId
	 * @author  zhouxuan
	 * @return UserCommodityOrderDTO
	 * 
	 */
	public List<UserCommodityOrderDTO> getUserCommodityOrderList(String userId);
	
	/**
	 * 
	 * @Title: getCommodityInfo
	 * @Description:根据商品id获取商品详情
	 * @param commodityId 商品id
	 * @return CommodityInfo
	 * @author zhouxuan
	 * 
	 */
	public CommodityInfoRes getCommodityInfoRes(String commodityId);
	
	/**
	 * @Title: getUserIntegraDetailRecordList
	 * @Description:根据用户id获取用户积分记录
	 * @param @param userId
	 * @author zhouxuan
	 * @return List<UserIntegraDetailRecordRes>
	 */
	public List<UserIntegraDetailRecordRes> getUserIntegraDetailRecordList(String userId, int row, int pageSize);
	
}
